package com.commute.android;

//import pervasive.commute.R;
import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.widget.TextView;

public class ItemTransferActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_item_transfer);
		
		
		//Regular Bus
		TextView bus = (TextView) findViewById(R.id.data_field_transf_bus_route);
		TextView arrival = (TextView) findViewById(R.id.data_field_transf_arrival);
		TextView event = (TextView) findViewById(R.id.data_field_transf_departure);
		TextView from = (TextView) findViewById(R.id.data_field_transf_from);
		TextView to = (TextView) findViewById(R.id.data_field_transf_to);
		
		Bundle extras = getIntent().getExtras();
		String text_bus = extras.getString("EXTRA_BUS_ROUTE");
		String text_arrival = extras.getString("EXTRA_ARRIVAL");
		String text_departure = extras.getString("EXTRA_DEPARTURE");
		String text_from = extras.getString("EXTRA_FROM");
		String text_to = extras.getString("EXTRA_TO");
		
		bus.setText("Bus " + text_bus);
		arrival.setText(text_arrival);
		event.setText(text_departure);
		from.setText(text_from);
		to.setText(text_to);
		
		//Transfer Bus
		TextView bus_transfer = (TextView) findViewById(R.id.data_field_transf_bus_route_transfer);
		TextView arrival_transfer = (TextView) findViewById(R.id.data_field_transf_arrival_transfer);
		TextView event_transfer = (TextView) findViewById(R.id.data_field_transf_departure_transfer);
		TextView from_transfer = (TextView) findViewById(R.id.data_field_transf_from_transfer);
		TextView to_transfer = (TextView) findViewById(R.id.data_field_transf_to_transfer);
		
		//Bundle extras_transfer = getIntent().getExtras();
		String text_bus_transfer = extras.getString("EXTRA_BUS_ROUTE_TRANSFER");
		String text_arrival_transfer = extras.getString("EXTRA_ARRIVAL_TRANSFER");
		String text_departure_transfer = extras.getString("EXTRA_DEPARTURE_TRANSFER");
		String text_from_transfer = extras.getString("EXTRA_FROM_TRANSFER");
		String text_to_transfer = extras.getString("EXTRA_TO_TRANSFER");
		
		bus_transfer.setText("Bus " + text_bus_transfer);
		arrival_transfer.setText(text_arrival_transfer);
		event_transfer.setText(text_departure_transfer);
		from_transfer.setText(text_from_transfer);
		to_transfer.setText(text_to_transfer);
		
		
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.activity_item, menu);
		return true;
	}

}
